/*
 * copyright (c) 2013 Blaise-Florentin Collin
 *
 * This file is part of astroDCAM.
 *
 * astroDCAM is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License v3
 * as published by the Free Software Foundation
 *
 * astroDCAM is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * v3 along with astroDCAM; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301 USA
 */

///
/// \mainpage astroDCAM documentation
///
/// \section intro Introduction
///
/// astroDCAM is an imaging tool for astronomy
///
/// The main purpose is to provide a simple and complete imaging\n
/// tool for astronomy using IIDC/DCAM cameras.
///
/// It uses the lidc1394 library to access to the IIDC/DCAM cameras\n
/// and QT4 for the GUI. astroDCAM supports Linux, Mac OS X and the\n
/// Win32 targets.
///
/// \section features Features
///
/// \li Snapshots/Movies capture
/// \li Preprocessing
/// \li Stacking
/// \li Guiding
/// \li Focus helper
/// \li Polar alignement helper
///
/// \author Blaise-Florentin Collin
/// \date 2013
/// \copyright GPL V3
///

///
/// \file main.cpp
///
/// \brief Main function, app starting point
///

// C++ app includes
#include "config.hpp"

// Qt app includes
#include "QAstroApplication.hpp"

///
/// Application entry point
///
int main(int argc, char** argv){
   // result
   int res;
   // app object
   QAstroApplication* app;
   app=new QAstroApplication(argc,argv);
   res=app->init();
   if(res!=0)
      return(res);

   // main loop
   res=app->exec();

   // cleaning
   delete app;

   // finish
   return(res);
}

// global used for debug/trace verbose mode
bool verbose; ///< Global boolean storing the log trace state
